﻿<div class="widget w-box recents-widget">
    <h3 class="widget-title"><span>Son Yazılar</span></h3>

    <ul class="prl-list-line">
        @using (WidgetsHelper Helper = new WidgetsHelper())
        {
            foreach (var post in Helper.RecentPosts())
            {
                <li class="clearfix">
                    <article class="prl-article">
                        <a href="@Url.Content("Post/"+post.SpecialURL)" class="prl-thumbnail floatleft">
                            <img src="@Html.ImageUrl(0, true)" width="60" height="60" alt="Post">
                        </a>
                        <a class="recent-title" href="@Url.Content("Post/"+post.SpecialURL)" title="@post.Name">@post.Name</a>
                        <span class="prl-article-meta">
                            <span>
                                <i class="fa fa-clock-o"></i> @post.SaveDate.ToString("MMMM, dd yyyy")
                            </span>
                        </span>
                    </article>
                </li>
            }
        }
    </ul>
</div>

